<html>
<head><meta charset="utf-8"><title>Variable name at runtime · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Variable.20name.20at.20runtime.html">Variable name at runtime</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="206286663"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Variable%20name%20at%20runtime/near/206286663" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Nye <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Variable.20name.20at.20runtime.html#206286663">(Aug 07 2020 at 17:37)</a>:</h4>
<p>Is there a way to print the name of a variable from the source code when running?</p>



<a name="206287077"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Variable%20name%20at%20runtime/near/206287077" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Nye <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Variable.20name.20at.20runtime.html#206287077">(Aug 07 2020 at 17:40)</a>:</h4>
<p>Never mind. Found it. stringify!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>